/**
  ******************************************************************************
  * @file    iap.h 
  * @author  iron
  * @date 	 2018-07-09
  * @version v1.0
  * @brief   iap header file
  */

#ifndef __IAP_H
#define __IAP_H

#ifdef __cplusplus
 extern "C" {
#endif 

/* includes -------------------------------------------------------------------*/
#include <stdint.h>
#include "iap_uart.h"
#include "iap_flash.h"
#include "iap_ymodem.h"

/* exported define ------------------------------------------------------------*/
/* exported types ------------------------------------------------------------*/
/* exported constants --------------------------------------------------------*/
extern uint8_t iap_filename[IAP_FILE_NAME_LENGTH + 1];

/* exported macro ------------------------------------------------------------*/
/* exported functions ------------------------------------------------------- */
void iap_delay(uint32_t time_ms);
void iap_int2str(uint8_t *p_str, uint32_t intnum);
uint32_t iap_str2int(uint8_t *p_inputstr, uint32_t *p_intnum);

/**
  * @}
  */

#ifdef __cplusplus
}
#endif

#endif /* __IAP_H */

/*******************(C)COPYRIGHT 2018 Iron *****END OF FILE*******************/
